package com.google.code.p.restrpc.message;

/**
 * @author dz
 */
public interface MessageQueue {
    
    /**
     * append to a queue
     * 
     * @param data
     */
    public void addMessage(Object data);
    
    /**
     * append to a scheduled queue
     * 
     * @param data
     */
    public void addLazyMessage(Object data);
    
    /**
     * append to a scheduled queue by specified delay time unit
     * 
     * @param data
     * @param delay
     *            TimeUnit.SECONDS
     */
    public void addLazyMessage(Object data, int delay);
    
}
